/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconCart: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M816 832a48 48 0 1 1 0 96 48 48 0 0 1 0-96z m-512 0a48 48 0 1 1 0 96 48 48 0 0 1 0-96zM164.896 128a64 64 0 0 1 62.08 48.416l1.056 5.056L240.416 256h605.6a96 96 0 0 1 94.72 111.616l-1.6 7.68-32 128a96 96 0 0 1-87.392 72.544l-5.728 0.16H293.76l16.896 101.216a32 32 0 0 0 27.712 26.528l3.84 0.224H864a32 32 0 0 1 3.744 63.776L864 768H342.208A96 96 0 0 1 248.64 693.44l-1.12-5.728L164.896 192H96a32 32 0 0 1-3.744-63.776L96 128h68.896z m118.176 384h530.944a32 32 0 0 0 29.984-20.768l1.088-3.456 32-128a32 32 0 0 0-27.328-39.552L846.016 320H251.072l32 192z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconCart.defaultProps = {
  size: 18,
};

export default IconCart;
